package com.zenith.edu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zenith.edu.po.domain.EduWarningRule;
import com.zenith.edu.po.dto.EduWarningRuleDTO;
import com.zenith.edu.po.vo.EduWarningRuleVO;

import java.util.List;

public interface EduWarningRuleService extends IService<EduWarningRule> {
    
    /**
     * 创建预警规则
     * @param dto 预警规则DTO
     * @return 预警规则VO
     */
    EduWarningRuleVO createWarningRule(EduWarningRuleDTO dto);
    
    /**
     * 根据ID获取预警规则详情
     * @param id 预警规则ID
     * @return 预警规则VO
     */
    EduWarningRuleVO getWarningRuleById(Long id);
    
    /**
     * 更新预警规则信息
     * @param dto 预警规则DTO
     * @return 预警规则VO
     */
    EduWarningRuleVO updateWarningRule(EduWarningRuleDTO dto);
    
    /**
     * 删除指定预警规则
     * @param id 预警规则ID
     * @return 是否删除成功
     */
    boolean deleteWarningRule(Long id);
    
    /**
     * 获取预警规则列表
     * @return 预警规则VO列表
     */
    List<EduWarningRuleVO> getWarningRuleList();
}